home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000017_fdc@columbia.edu_Tue Nov 25 09:58:33 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How do I get kermit to return a code to a calling Linux Script ?
Date: 25 Nov 2003 14:57:36 GMT
Organization: Columbia University
Lines: 42
Message-ID: <slrnbs6rf0.oig.fdc@sesame.cc.columbia.edu>
References: <f0bb0f39.0311250618.1bb06acf@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1069772256 26064 128.59.59.56 (25 Nov 2003 14:57:36 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 25 Nov 2003 14:57:36 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14693
In article <f0bb0f39.0311250618.1bb06acf@posting.google.com>,
newexpectuser wrote:
: I have the following line that I purposely triggered to try to
: simulate a timeout condition in my script:
: .
: .
: .
::1, echo PASSWORD PROMPT OK
: lineout xxxxxxxxx
: input 10 "#"
: if fail break stop 1 output \quit\13
: .
: .
: .
: }
: echo "Outside loop"
: bye
: exit
:
: I have a Linux script calling this Kermit script, but it doesn't seem
: to recognize the return code of a 1 from the stop command ?...I had to
: use the 'output \quit\13' because the stop was leaving me at the
: "C-Kermit>" prompt, I guess this is the correct syntax, because it put
: me back into my calling script.
:
Please read about the END, STOP, and EXIT commands. Each does a different
thing. From your description I think you need the EXIT command in this
case.
Also you are probably better off coding the entire procedure in Kermit,
rather than trying to mix shell and Kermit scripts, at least if you want
us to keep helping you with it. Yesterday you were complaining about a
loop, but you failed to mention that the loop was in a shell script.
Kermit does loops too. Please read the manual and other documentation:
http://www.columbia.edu/kermit/ckermit.html#doc
and look at the sample scripts:
http://www.columbia.edu/kermit/ckscripts.html
- Frank